@import '../../../core/index.less';

.orin-s-artworkeditor-root {
    padding: 0;
    margin: 0;
    .editor-mask {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 16;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
        .editor-wrapper {
            background: #ffffff;
            .boxShadow();
            width: 660/@remScale;
            margin: auto;
            display: flex;
            flex-direction: column;
            .editor-header {
                .dialog-header();
                p {
                    .dialog-header-p();
                }

                span {
                    .dialog-header-span();
                }
            }
            .editor-content {
                padding: 0 20/@remScale;
                flex: 1;
                position: relative;
                .text-wrapper {
                    display: flex;
                    justify-content: space-between;
                    width: 300/@remScale;
                    margin-top: 20/@remScale;
                    align-items: center;
                    .re-upload {
                        color: @light-blue-color;
                        position: relative;
                        font-size: 14/@remScale;
                        width: 3rem;
                        cursor: pointer;
                        span {
                            position: relative;
                        }
                        input {
                            position: absolute;
                            top: 0;
                            width: 100%;
                            bottom: 0;
                            left: 0;
                            right: 0;
                            opacity: 0;
                            z-index: -1;
                        }
                    }
                    .description {
                        font-size: 14/@remScale;
                        color: @cancel-btn-color;
                    }
                }

            }
            .editor-footer {
                display: flex;
                justify-content: center;
                align-items: center;
                height: 70/@remScale;
                .cancel {
                    width: 130/@remScale;
                    height: 40/@remScale;
                    border-radius: 4/@remScale;
                    margin-right: 16/@remScale;
                    background: @white;
                    color: #60666C;
                    border: 1/@remScale solid #dddddd;
                    &:hover {
                        border-color: @light-blue-color;
                        color: @light-blue-color;
                    }
                }
                .confirm {
                    width: 130/@remScale;
                    height: 40/@remScale;
                    border-radius: 4/@remScale;
                    background: @light-blue-color;
                    .btnLightenHover(@light-blue-color);
                }
            }
            .editor-footer-phone {
                display: none;
                margin-top: 20/@remScale;
                width: 100%;
                height: 50/@remScale;
                background-color: @mainColor;
                line-height: 50/@remScale;
                //padding: 0 30/@remScale;
                color: @white;
                span {
                    flex: 0 0 60/@remScale;
                    text-align: center;
                }
                .reset-editor {
                    flex: 1;
                    text-align: center;
                }
                .delete {

                }
                .define {
                    width: 21/@remScale;
                    height: 25/@remScale;
                }
            }
            &.avatar {
                width: 500/@remScale;
                .editor-content {
                    padding: 34/@remScale;
                    background-color: @background-color;
                }
            }
            &.cover {
                width: 600/@remScale;
                .editor-content {
                    padding: 34/@remScale;
                    background-color: @background-color;
                }
            }
        }
    }
    @media (max-width: @max1) {
        .editor-mask {
            .editor-wrapper {
                width: 100%;
                height: 100%;
                background: @background-color;
                .editor-header {
                    display: none;
                }
                .editor-content {
                    padding: 0;
                    height: 100%;
                    overflow-y: auto;
                    display: flex;
                    flex-direction: column;
                    .text-wrapper {
                        padding: 20/@remScale;
                        margin-top: 0;
                        width: 100%;
                    }
                }
                .editor-footer {
                    display: none;
                }
                .editor-footer-phone {
                    display: flex;
                }
                &.avatar {
                    width: 100%;
                    height: 100%;
                    .editor-content {
                        padding: 0;
                    }
                }
                &.cover {
                    width: 100%;
                    height: 100%;
                    .editor-content {
                        padding: 0;
                    }
                }
            }
        }
    }
}